﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Skyhook.Core;
using Skyhook.Resources;
using Skyhook.Core.Graphics;
using Skyhook.Core.Screens;

using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

using Tanks.Screens;
using Tanks.Debug;

namespace Tanks
{
    public class TanksGame : Application
    {
        Font Font = null;
        SpriteBatch Batch = null;
        
        public TanksGame()
            : base()
        {
        }

        protected override void Initialize()
        {
            GameScreenManager screenmanager = new GameScreenManager();
            AddChild(screenmanager);

            MainGameScreen mainscreen = new MainGameScreen(screenmanager);
            mainscreen.Show();

            DebugInfo fpsinfo = new DebugInfo();
            AddChild(fpsinfo);
        }

        
        protected override void LoadContent()
        {
            Font = ResourceFactory.CreateFromFile<Font>("bookman_14");
            Batch = GraphicsFactory.CreateSpriteBatch();
        }

        protected override void Draw(GameTime time)
        {
            GraphicsManager.ClearScreen(Color.Gray);
        }
    }
}
